#include "stdafx.h"
#pragma once
#define WIN32_LEAN_AND_MEAN	
#define _CRT_SECURE_NO_DEPRECATE
#include <windows.h>
#include "UIlib.h"
#include "CListen.h"

using namespace DuiLib;

#ifdef _UNICODE
#       pragma comment(lib, "DuiLib_u.lib")
#endif

class CListenResult :public CWindowWnd, public INotifyUI
{
public:
	CListenResult(CListen *pParent = NULL);
	LPCTSTR GetWindowClassName() const { return _T("UIMainFrame");}; 
	UINT GetClassStyle() const { return UI_CLASSSTYLE_FRAME | CS_DBLCLKS; };
	void OnFinalMessage(HWND /*hWnd*/) { /*delete this;*/ };

	void Init() { }

	void Notify(TNotifyUI& msg);

	LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
protected:
	void OnPrepare(TNotifyUI& msg);
public:
	CPaintManagerUI m_PaintManager;
	CString m_strQuestion;
	int m_nNumber;
	int m_nTrueNumber;
	CString m_strReviewQuestion;
	SplitResultVector m_sptQuestion;
	CListen *m_pParent;

};